﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using BUL;
using Entity;

namespace PM.Page
{
    public partial class Page : System.Web.UI.Page
    {
        private string _grnid = "";
        readonly PageBul _newsBul=new PageBul();
        protected void Page_Load(object sender, EventArgs e)
        {
            if (_grnid != null)
            {
                _grnid = Convert.ToString(Page.RouteData.Values["grnid"]);
            }
            LoadContent(_grnid);
        }
        public void LoadContent(string gri)
        {
            var list =new List<Entity.Page>();
            list = _newsBul.Page_GetById(gri);
            ltrPage.Text = list[0].Detail;
        }
    }
}